package com.cloud.controller;

import com.cloud.client.OrderClient;
import com.cloud.domain.TOrder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author tangyuan2meicloud.com
 * @DATE 2021/6/28 14:50
 * @Desc
 * @Remarks
 */
@RestController
public class TestController2 {
    @Autowired
    private OrderClient orderClient;

    @RequestMapping("/test2")
    public TOrder test(Long id) {
        TOrder forObject = orderClient.getById(id);
        System.out.println(forObject);
        return forObject;
    }
}
